package org.mtmi.ui.controls.listeners;

import org.mtmi.ui.controls.ITouchableControl;
import org.mtmi.ui.controls.IValueGenerator;

/**
 * Event class used by control listeners to give information about tap notifications.
 * @author jdelgoulet
 *
 */
public class ValueEvent {

	/** != null if value comes from a touchable control, might be different like value_generator */
	public ITouchableControl control;
	/** != null if value comes from an {@link IValueGenerator} */
	public IValueGenerator   value_generator; 
	/** the new value */
	public int newValue;

	public ValueEvent( ITouchableControl control, IValueGenerator vg, int newValue) {
		this.control = control;
		value_generator = vg;
		this.newValue = newValue;
	}
}
